<table class="content" align="center" cellspacing="0" cellpadding="0">
  <tr>
    <td class="content_title_top"><div><?php echo Kohana::lang('profile_lang.tt_page')?></div></td>
  </tr>
  <tr>
    <td class="content_middle">
    <form name="frm" action="<?php echo $this->site['base_url']?>profile/sm" method="post">
    <table align="center" cellspacing="0" cellpadding="3" border="0">  
    <tr>
		<td colspan="2" align="center">        
		<font color="#0000FF"><?php if(isset($success_msg)) echo $success_msg ?></font>
        <font color="#FF0000"><?php if(isset($error_msg)) echo $error_msg ?></font>
        </td>
    </tr>
    <tr>
        <td align="right"><?php echo Kohana::lang('customer_lang.lbl_username') ?> <font color="#FF0000">*</font></td>
        <td>
		<input type="text" name="txt_username" id="txt_username" size="40" value="<?php if(isset($mr['customers_username'])) echo $mr['customers_username'] ?>"/>
		</td>
    </tr>
    <tr>
        <td width="30%" align="right"><?php echo Kohana::lang('customer_lang.lbl_email') ?> <font color="#FF0000">*</font></td>
        <td>
		<input type="text" name="txt_email" id="txt_email" size="40" value="<?php if(isset($mr['customers_email'])) echo $mr['customers_email'] ?>"/>
        </td>
    </tr>
    <tr>
        <td align="right"><?php echo Kohana::lang('customer_lang.lbl_first_name') ?></td>
        <td><input type="text" name="txt_firstname" id="txt_firstname" size="40" value="<?php if(isset($mr['customers_firstname'])) echo $mr['customers_firstname'] ?>"/>
        </td>
    </tr>
     <tr>
    <td align="right"><?php echo Kohana::lang('customer_lang.lbl_last_name') ?></td>
    <td><input type="text" name="txt_lastname" id="txt_lastname" size="40" value="<?php if(isset($mr['customers_lastname'])) echo $mr['customers_lastname'] ?>"/></td>
    </tr>
    <tr>
      	<td align="right"><?php echo Kohana::lang('customer_lang.lbl_street') ?></td>
    	<td><input id="txt_address" name="txt_address" type="text" size="40" value="<?php if(isset($mr['customers_address'])) echo $mr['customers_address'] ?>"/></td>
    </tr>
    <tr>
        <td align="right">&nbsp;</td>
        <td><input name="txt_address2" type="text" id="txt_address2" size="40" value="<?php if(isset($mr['customers_address2'])) echo $mr['customers_address2'] ?>"/></td>    
    </tr>    
    <td align="right"><?php echo Kohana::lang('customer_lang.lbl_city') ?>:</td>
    <td><input type="text" name="txt_city" id="txt_city" size="40" value="<?php if(isset($mr['customers_city'])) echo $mr['customers_city'] ?>"/></td>
    </tr>
    <tr>
      <td align="right"><?php echo Kohana::lang('customer_lang.lbl_state') ?>:</td>
      <td>
      <select name="sel_state" id="sel_state" style="width:272px">
        <option value="">---</option>
        <?php for($i=0; $i<count($list_state); $i++) { ?>
        <option value="<?php echo $list_state[$i]['state_code']?>" <?php if($list_state[$i]['state_code'] == $mr['customers_state']) echo 'selected="selected"'?> ><?php echo $list_state[$i]['state_name']?></option>
        <? } ?>
      </select>
      </td>
    </tr>
    <tr>
      <td align="right"><?php echo Kohana::lang('customer_lang.lbl_zipcode') ?>:</td>
      <td><input type="text" name="txt_zipcode" id="txt_zipcode" size="40" value="<?php if(isset($mr['customers_zipcode'])) echo $mr['customers_zipcode'] ?>"/></td>
    </tr>
    <tr>
    	<td align="right"><?php echo Kohana::lang('customer_lang.lbl_phone') ?></td>
    	<td><input type="text" name="txt_phone" id="txt_phone" size="40" value="<?php if(isset($mr['customers_phone'])) echo $mr['customers_phone'] ?>"/></td>
    </tr>
    <tr>
        <td align="right"><?php echo Kohana::lang('customer_lang.lbl_fax') ?></td>
        <td><input type="text" name="txt_fax" id="txt_fax" size="40" value="<?php if(isset($mr['customers_fax'])) echo $mr['customers_fax'] ?>"/></td>
    </tr>
    <tr>
      <td align="right">&nbsp;</td>
      <td><font color="#FF0000">*</font> <?php echo Kohana::lang('site_lang.lbl_required_field') ?></td>
    </tr>
    <tr>
  	<tr>
        <td colspan="2" class="login_button" align="center">
        <input type="submit" name="btn_submit" class="button" value="<?php echo Kohana::lang('profile_lang.btn_submit')?>" />
        <input type="reset" name="btn_reset" class="button" value="<?php echo Kohana::lang('profile_lang.btn_reset')?>" />
        </td>
    </tr>
    </table>
    </form>
 </td>
  </tr>
  <tr>
    <td class="content_bottom"></td>
  </tr>
</table>